package cn.gok.entity;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Description:
 * @Author: chen fan
 * @Date: 2022年11月02日 15:01:08
 */

public class Student {
    private HeadTeacher headTeacher;

    private int stuNo;
    private String stuName;

    private int age;

    private String gender;

    private String classNo;

    private List<String> interests;


    private Set<String> address;


    private Map<String, Integer> scores;


    private LocalDate joinTime;
    public Student() {
    }

    public Student(HeadTeacher headTeacher, int stuNo, String stuName) {

        System.out.println("调用有参构造器，实现属性值的注入");
        this.headTeacher = headTeacher;
        this.stuNo = stuNo;
        this.stuName = stuName;
    }


    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public LocalDate getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(LocalDate joinTime) {
        this.joinTime = joinTime;
    }

    public String getClassNo() {
        return classNo;
    }

    public void setClassNo(String classNo) {
        this.classNo = classNo;
    }

    public List<String> getInterests() {
        return interests;
    }

    public void setInterests(List<String> interests) {
        this.interests = interests;
    }



    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getStuNo() {
        return stuNo;
    }

    public void setStuNo(int stuNo) {
        this.stuNo = stuNo;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public HeadTeacher getHeadTeacher() {
        return headTeacher;
    }

    public void setHeadTeacher(HeadTeacher headTeacher) {
        this.headTeacher = headTeacher;
    }

    public Set<String> getAddress() {
        return address;
    }

    public void setAddress(Set<String> address) {
        this.address = address;
    }

    public Map<String, Integer> getScores() {
        return scores;
    }

    public void setScores(Map<String, Integer> scores) {
        this.scores = scores;
    }

    @Override
    public String toString() {
        return "Student{" +
                "headTeacher=" + headTeacher +
                ", stuNo=" + stuNo +
                ", stuName='" + stuName + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", classNo='" + classNo + '\'' +
                ", interests=" + interests +
                ", address=" + address +
                ", scores=" + scores +
                ", joinTime=" + joinTime +
                '}';
    }
}
